package com.zrrd.gmall.item.fegin;

import com.zrrd.gmall.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("service-item")
public interface ItemFeginClient {

    //向商品汇总服务发请求 获取需要的Map集合
    @GetMapping("api/item/{skuId}")
    public Result getItem(@PathVariable("skuId") Long skuId);
}
